From: Rico Tzschichholz Date: Sun, 5 Aug 2012 07:56:58 +0000 (+0200) Subject: cups: Use IPP api when necessary with CUPS 1.6 X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~16718 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e8dcfad441aad7e03a8a459f3818018bd6ff63c7;p=gtk%2B3.0.git cups: Use IPP api when necessary with CUPS 1.6 --- diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index d9110be158..c79fe9da21 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -1835,9 +1835,9 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend, info->auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL)); } } - else if (strcmp (attr->name, "number-up-default") == 0) + else if (strcmp (ippGetName (attr), "number-up-default") == 0) { - info->default_number_up = attr->values[0].integer; + info->default_number_up = ippGetInteger (attr, 0); } else {